﻿using System;
using System.Collections.Generic;

namespace Database.ERPNext
{
    public partial class tabLoan
    {
        public string name { get; set; } = null!;
        public DateTime? creation { get; set; }
        public DateTime? modified { get; set; }
        public string? modified_by { get; set; }
        public string? owner { get; set; }
        public int docstatus { get; set; }
        public int idx { get; set; }
        public string? applicant_type { get; set; }
        public string? applicant { get; set; }
        public string? applicant_name { get; set; }
        public string? loan_application { get; set; }
        public string? company { get; set; }
        public DateOnly? posting_date { get; set; }
        public string? status { get; set; }
        public string? loan_type { get; set; }
        public string? repayment_schedule_type { get; set; }
        public decimal loan_amount { get; set; }
        public decimal rate_of_interest { get; set; }
        public int is_secured_loan { get; set; }
        public DateOnly? disbursement_date { get; set; }
        public DateOnly? closure_date { get; set; }
        public decimal disbursed_amount { get; set; }
        public decimal maximum_loan_amount { get; set; }
        public string? repayment_method { get; set; }
        public int repayment_periods { get; set; }
        public decimal monthly_repayment_amount { get; set; }
        public DateOnly? repayment_start_date { get; set; }
        public int is_term_loan { get; set; }
        public string? cost_center { get; set; }
        public string? mode_of_payment { get; set; }
        public string? disbursement_account { get; set; }
        public string? payment_account { get; set; }
        public string? loan_account { get; set; }
        public string? interest_income_account { get; set; }
        public string? penalty_income_account { get; set; }
        public decimal total_payment { get; set; }
        public decimal total_principal_paid { get; set; }
        public decimal written_off_amount { get; set; }
        public decimal refund_amount { get; set; }
        public decimal debit_adjustment_amount { get; set; }
        public decimal credit_adjustment_amount { get; set; }
        public int is_npa { get; set; }
        public decimal total_interest_payable { get; set; }
        public decimal total_amount_paid { get; set; }
        public string? amended_from { get; set; }
        public string? _user_tags { get; set; }
        public string? _comments { get; set; }
        public string? _assign { get; set; }
        public string? _liked_by { get; set; }
    }
}
